import request from '@/utils/request'

//获取资源库类型列表
export function getLibraryTypeList() {
	return request({
		method: 'get',
		url: 'tbNetLibrary/queryList',
	})
}

//添加资源库类型
export function addedLibraryType(data) {
	return request({
		method: 'post',
		url: 'tbNetLibrary/add',
		data
	})
}

//删除资源库类型
export function deleteLibraryType(id) {
	return request({
		method: 'get',
		url: 'tbNetLibrary/delete/' + id
	})
}

//修改资源库类型
export function updateLibraryType(data) {
	return request({
		method: 'post',
		url: 'tbNetLibrary/update',
		data
	})
}

//获取资源库类型详情
export function queryLibraryType(id) {
	return request({
		method: 'get',
		url: 'tbNetLibrary/query/' + id
	})
}

